//
//  NBCell.m
//  聚超值
//
//  Created by 周abel on 16/3/31.
//  Copyright © 2016年 Zhli. All rights reserved.
//

#import "NBCell.h"
#import "UIImageView+WebCache.h"
#import "NBItem.h"
#import "NSString+time.h"

@interface NBCell ()

@property (weak, nonatomic) IBOutlet UIImageView *myImageView;

@property (weak, nonatomic) IBOutlet UILabel *titleText;
@property (weak, nonatomic) IBOutlet UILabel *moneyText;
@property (weak, nonatomic) IBOutlet UILabel *localText;
@property (weak, nonatomic) IBOutlet UILabel *dateText;

@end

@implementation NBCell

- (void)setItem:(NBItem *)item {

    _item = item;
    
    [self.myImageView sd_setImageWithURL:[NSURL URLWithString:item.cover] placeholderImage:[UIImage imageNamed:@"AppIcon60x60"]];
    self.titleText.text = item.title;
    self.moneyText.text = item.price;
    self.localText.text = item.mallName;
    self.dateText.text = [NSString getTime:item.pubDate];

}








@end
